package com.ztesoft.web.common.vo;

import java.util.Date;

import org.apache.commons.lang.StringUtils;

import com.ztesoft.framework.dto.AbstractDto;

public class DmHostConnInfoVO extends AbstractDto {
	private Integer hostId;
	private String hostName;
	private String ip;
	private String busiSys;
	private String osType;
	private String state;
	private Date stateDate;
	private Date createDate;

	// 前台主机配置树-数据格式
	private Integer id;
	private Integer pId = 0;
	private String name;
	private boolean open = false;
	private boolean drag = false;
	private boolean isParent = false;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getpId() {
		return pId;
	}

	public void setpId(Integer pId) {
		this.pId = pId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isOpen() {
		return open;
	}

	public void setOpen(boolean open) {
		this.open = open;
	}

	public boolean isDrag() {
		return drag;
	}

	public void setDrag(boolean drag) {
		this.drag = drag;
	}

	public boolean isParent() {
		return isParent;
	}

	public void setParent(boolean isParent) {
		this.isParent = isParent;
	}

	public Integer getHostId() {
		return hostId;
	}

	public void setHostId(Integer hostId) {
		this.hostId = hostId;
	}

	public String getHostName() {
		return StringUtils.isBlank(hostName) ? hostName : hostName.trim();
	}

	public void setHostName(String hostName) {
		this.hostName = hostName;
	}

	public String getIp() {
		return StringUtils.isBlank(ip) ? ip : ip.trim();
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getBusiSys() {
		return StringUtils.isBlank(busiSys) ? busiSys : busiSys.trim();
	}

	public void setBusiSys(String busiSys) {
		this.busiSys = busiSys;
	}

	public String getOsType() {
		return StringUtils.isBlank(osType) ? osType : osType.trim();
	}

	public void setOsType(String osType) {
		this.osType = osType;
	}

	public String getState() {
		return StringUtils.isBlank(state) ? state : state.trim();
	}

	public void setState(String state) {
		this.state = state;
	}

	public Date getStateDate() {
		return stateDate;
	}

	public void setStateDate(Date stateDate) {
		this.stateDate = stateDate;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

}